<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Karamelo: mpm.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="karamelodoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="karamelo_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.karamelo.org"><img alt="Logo" src="Karamelo_logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://www.karamelo.org">Karamelo</a>
   &#160;<span id="projectnumber">714599e9</span>
   </div>
   <div id="projectbrief">Parallel Material Point Method Simulator</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('mpm_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">mpm.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- c++ -*- ----------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *                    ***       Karamelo       ***</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *               Parallel Material Point Method Simulator</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * </span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Copyright (2019) Alban de Vaucorbeil, alban.devaucorbeil@monash.edu</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Materials Science and Engineering, Monash University</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Clayton VIC 3800, Australia</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * This software is distributed under the GNU General Public License.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * ----------------------------------------------------------------------- */</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef MPM_MPM_H</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define MPM_MPM_H</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;mpi.h&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classMPM.html">   29</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMPM.html">MPM</a> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classMPM.html#ae41f29fb1aa75b288abfa4618fc96d74">   33</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classMemory.html">Memory</a> *<a class="code" href="classMPM.html#ae41f29fb1aa75b288abfa4618fc96d74">memory</a>;          </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classMPM.html#a04c89349352d9747b72656ba437b3ceb">   34</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classError.html">Error</a> *<a class="code" href="classMPM.html#a04c89349352d9747b72656ba437b3ceb">error</a>;            </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classMPM.html#a17bcf94264da7c2c708e95c7caf9c2a5">   35</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classUniverse.html">Universe</a> *<a class="code" href="classMPM.html#a17bcf94264da7c2c708e95c7caf9c2a5">universe</a>;      </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classMPM.html#a9e27a4fb8cb143f8bc75565e7517bcc5">   36</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classInput.html">Input</a> *<a class="code" href="classMPM.html#a9e27a4fb8cb143f8bc75565e7517bcc5">input</a>;            </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classMPM.html#a5652815ddbc3d687fd0de376211efc61">   37</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classOutput.html">Output</a> *<a class="code" href="classMPM.html#a5652815ddbc3d687fd0de376211efc61">output</a>;          </div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classMPM.html#a8e6430bd5235a36a9cc3dbe568e858f8">   39</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classDomain.html">Domain</a> *<a class="code" href="classMPM.html#a8e6430bd5235a36a9cc3dbe568e858f8">domain</a>;          </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classMPM.html#a23bc06e4fc159faf4ca89569397864fe">   40</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classMaterial.html">Material</a> *<a class="code" href="classMPM.html#a23bc06e4fc159faf4ca89569397864fe">material</a>;      </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classMPM.html#a737e509d89e9a41c096b71977ecc6e52">   41</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classUpdate.html">Update</a> *<a class="code" href="classMPM.html#a737e509d89e9a41c096b71977ecc6e52">update</a>;          </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classMPM.html#aac515fe272d19523304b24e8b47e1d3e">   42</a></span>&#160;  <span class="keyword">class </span>Modify *<a class="code" href="classMPM.html#aac515fe272d19523304b24e8b47e1d3e">modify</a>;          </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classMPM.html#a20682259675708da5006301b199c5b23">   43</a></span>&#160;  <span class="keyword">class </span>Group *<a class="code" href="classMPM.html#a20682259675708da5006301b199c5b23">group</a>;            </div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classMPM.html#a4a0cc6127d14af4e2a9c32d529e71c57">   45</a></span>&#160;  MPI_Comm <a class="code" href="classMPM.html#a4a0cc6127d14af4e2a9c32d529e71c57">world</a>;                </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classMPM.html#a696bc697be8de870bdc20318be61ee45">   46</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMPM.html#a696bc697be8de870bdc20318be61ee45">initclock</a>;              </div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classMPM.html#a992eba675c3fb27cf60fc1ecbff8f5a2">   48</a></span>&#160;  filebuf <a class="code" href="classMPM.html#a992eba675c3fb27cf60fc1ecbff8f5a2">infile</a>;                </div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="comment">//filebuf logfile;               ///&lt; logfile</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classMPM.html#a0526afb98e3f54c06046d9b0a004a8ca">   50</a></span>&#160;  ofstream *<a class="code" href="classMPM.html#a0526afb98e3f54c06046d9b0a004a8ca">wlogfile</a>;            </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <a class="code" href="classMPM.html">MPM</a>(<span class="keywordtype">int</span>, <span class="keywordtype">char</span> **, MPI_Comm);   </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  ~<a class="code" href="classMPM.html">MPM</a>();                        </div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">void</span> init();</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keywordtype">void</span> help();</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <a class="code" href="classMPM.html">MPM</a>() {};                   </div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <a class="code" href="classMPM.html">MPM</a>(<span class="keyword">const</span> <a class="code" href="classMPM.html">MPM</a> &amp;) {};        </div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classMPM_html_a0526afb98e3f54c06046d9b0a004a8ca"><div class="ttname"><a href="classMPM.html#a0526afb98e3f54c06046d9b0a004a8ca">MPM::wlogfile</a></div><div class="ttdeci">ofstream * wlogfile</div><div class="ttdoc">log file </div><div class="ttdef"><b>Definition:</b> mpm.h:50</div></div>
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> error.h:22</div></div>
<div class="ttc" id="classMPM_html_a20682259675708da5006301b199c5b23"><div class="ttname"><a href="classMPM.html#a20682259675708da5006301b199c5b23">MPM::group</a></div><div class="ttdeci">class Group * group</div><div class="ttdoc">groups of particles </div><div class="ttdef"><b>Definition:</b> mpm.h:43</div></div>
<div class="ttc" id="classMPM_html_a992eba675c3fb27cf60fc1ecbff8f5a2"><div class="ttname"><a href="classMPM.html#a992eba675c3fb27cf60fc1ecbff8f5a2">MPM::infile</a></div><div class="ttdeci">filebuf infile</div><div class="ttdoc">input file </div><div class="ttdef"><b>Definition:</b> mpm.h:48</div></div>
<div class="ttc" id="classUniverse_html"><div class="ttname"><a href="classUniverse.html">Universe</a></div><div class="ttdef"><b>Definition:</b> universe.h:25</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classMPM_html_a04c89349352d9747b72656ba437b3ceb"><div class="ttname"><a href="classMPM.html#a04c89349352d9747b72656ba437b3ceb">MPM::error</a></div><div class="ttdeci">class Error * error</div><div class="ttdoc">error handling </div><div class="ttdef"><b>Definition:</b> mpm.h:34</div></div>
<div class="ttc" id="classMPM_html"><div class="ttname"><a href="classMPM.html">MPM</a></div><div class="ttdef"><b>Definition:</b> mpm.h:29</div></div>
<div class="ttc" id="classMPM_html_a4a0cc6127d14af4e2a9c32d529e71c57"><div class="ttname"><a href="classMPM.html#a4a0cc6127d14af4e2a9c32d529e71c57">MPM::world</a></div><div class="ttdeci">MPI_Comm world</div><div class="ttdoc">MPI communicator. </div><div class="ttdef"><b>Definition:</b> mpm.h:45</div></div>
<div class="ttc" id="classOutput_html"><div class="ttname"><a href="classOutput.html">Output</a></div><div class="ttdef"><b>Definition:</b> output.h:23</div></div>
<div class="ttc" id="classMPM_html_aac515fe272d19523304b24e8b47e1d3e"><div class="ttname"><a href="classMPM.html#aac515fe272d19523304b24e8b47e1d3e">MPM::modify</a></div><div class="ttdeci">class Modify * modify</div><div class="ttdoc">fixes and computes </div><div class="ttdef"><b>Definition:</b> mpm.h:42</div></div>
<div class="ttc" id="classMPM_html_a17bcf94264da7c2c708e95c7caf9c2a5"><div class="ttname"><a href="classMPM.html#a17bcf94264da7c2c708e95c7caf9c2a5">MPM::universe</a></div><div class="ttdeci">class Universe * universe</div><div class="ttdoc">universe of processors </div><div class="ttdef"><b>Definition:</b> mpm.h:35</div></div>
<div class="ttc" id="classMPM_html_a5652815ddbc3d687fd0de376211efc61"><div class="ttname"><a href="classMPM.html#a5652815ddbc3d687fd0de376211efc61">MPM::output</a></div><div class="ttdeci">class Output * output</div><div class="ttdoc">logs/dump/restart </div><div class="ttdef"><b>Definition:</b> mpm.h:37</div></div>
<div class="ttc" id="classMPM_html_ae41f29fb1aa75b288abfa4618fc96d74"><div class="ttname"><a href="classMPM.html#ae41f29fb1aa75b288abfa4618fc96d74">MPM::memory</a></div><div class="ttdeci">class Memory * memory</div><div class="ttdoc">memory allocation functions </div><div class="ttdef"><b>Definition:</b> mpm.h:33</div></div>
<div class="ttc" id="classMPM_html_a737e509d89e9a41c096b71977ecc6e52"><div class="ttname"><a href="classMPM.html#a737e509d89e9a41c096b71977ecc6e52">MPM::update</a></div><div class="ttdeci">class Update * update</div><div class="ttdoc">pointer to update </div><div class="ttdef"><b>Definition:</b> mpm.h:41</div></div>
<div class="ttc" id="classInput_html"><div class="ttname"><a href="classInput.html">Input</a></div><div class="ttdef"><b>Definition:</b> input.h:30</div></div>
<div class="ttc" id="classMPM_html_a696bc697be8de870bdc20318be61ee45"><div class="ttname"><a href="classMPM.html#a696bc697be8de870bdc20318be61ee45">MPM::initclock</a></div><div class="ttdeci">double initclock</div><div class="ttdoc">wall clock at instantiation </div><div class="ttdef"><b>Definition:</b> mpm.h:46</div></div>
<div class="ttc" id="classMaterial_html"><div class="ttname"><a href="classMaterial.html">Material</a></div><div class="ttdef"><b>Definition:</b> material.h:70</div></div>
<div class="ttc" id="classMemory_html"><div class="ttname"><a href="classMemory.html">Memory</a></div><div class="ttdef"><b>Definition:</b> memory.h:29</div></div>
<div class="ttc" id="classDomain_html"><div class="ttname"><a href="classDomain.html">Domain</a></div><div class="ttdef"><b>Definition:</b> domain.h:34</div></div>
<div class="ttc" id="classMPM_html_a23bc06e4fc159faf4ca89569397864fe"><div class="ttname"><a href="classMPM.html#a23bc06e4fc159faf4ca89569397864fe">MPM::material</a></div><div class="ttdeci">class Material * material</div><div class="ttdoc">material </div><div class="ttdef"><b>Definition:</b> mpm.h:40</div></div>
<div class="ttc" id="classMPM_html_a9e27a4fb8cb143f8bc75565e7517bcc5"><div class="ttname"><a href="classMPM.html#a9e27a4fb8cb143f8bc75565e7517bcc5">MPM::input</a></div><div class="ttdeci">class Input * input</div><div class="ttdoc">input script processing </div><div class="ttdef"><b>Definition:</b> mpm.h:36</div></div>
<div class="ttc" id="classMPM_html_a8e6430bd5235a36a9cc3dbe568e858f8"><div class="ttname"><a href="classMPM.html#a8e6430bd5235a36a9cc3dbe568e858f8">MPM::domain</a></div><div class="ttdeci">class Domain * domain</div><div class="ttdoc">simulation box </div><div class="ttdef"><b>Definition:</b> mpm.h:39</div></div>
<div class="ttc" id="classUpdate_html"><div class="ttname"><a href="classUpdate.html">Update</a></div><div class="ttdef"><b>Definition:</b> update.h:21</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>mpm.h</b></li>
    <li class="footer">Generated on Tue Jul 7 2020 22:31:23 for Karamelo by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
<!-- Matomo -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.sylphide-consulting.com/matomo/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '20']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.sylphide-consulting.com/matomo/piwik.php?idsite=20&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>
